//package com.zmn.plat.dubbo.impl.channel;
//
//import javax.annotation.Resource;
//
//import lombok.extern.slf4j.Slf4j;
//import org.apache.dubbo.config.annotation.Service;
//
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.plat.common.dto.channel.ChannelInterfaceDIO;
//import com.zmn.plat.common.dto.channel.ChannelInterfaceDRO;
//import com.zmn.plat.dubbo.interfaces.channel.ChannelInterfaceModifyRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import com.zmn.plat.model.entity.channel.ChannelInterface;
//import com.zmn.plat.services.interfaces.channel.ChannelInterfaceService;
//import com.zmn.plat.utils.bean.BeanCopyUtils;
//
///**
// * 描述: 渠道类型dubbo接口
// *
// * @author tanghongjun
// * @since: 2018/11/7 17:44
// */
//@Slf4j
//@Service(version = DubboConsts.INTERFACE_VERSION, validation = "true")
//public class ChannelInterfaceModifyRemoteServiceImpl implements ChannelInterfaceModifyRemoteService {
//
//    @Resource
//    protected ChannelInterfaceService channelInterfaceService;
//
//    @Override
//    public ResponseDTO<ChannelInterfaceDRO> addChannelInterface(ChannelInterfaceDIO channelInterfaceDIO) {
//        log.info("ChannelInterfaceModifyRemoteServiceImpl.addChannelInterface参数channelInterfaceDIO：{}", channelInterfaceDIO);
//        ChannelInterface channelInterface = new ChannelInterface();
//        BeanCopyUtils.copyProperties(channelInterfaceDIO, channelInterface);
//        channelInterfaceService.insert(channelInterface);
//
//        return this.returnDRO(channelInterface);
//    }
//
//    @Override
//    public ResponseDTO<ChannelInterfaceDRO> modifyByKey(ChannelInterfaceDIO channelInterfaceDIO) {
//        log.info("ChannelInterfaceModifyRemoteServiceImpl.modifyByKey参数channelInterfaceDIO：{}", channelInterfaceDIO);
//        ChannelInterface channelInterface = new ChannelInterface();
//        BeanCopyUtils.copyProperties(channelInterfaceDIO, channelInterface);
//        channelInterfaceService.updateByKey(channelInterface);
//
//        return this.returnDRO(channelInterface);
//    }
//
//    private ResponseDTO<ChannelInterfaceDRO> returnDRO(ChannelInterface channelInterface) {
//        ChannelInterfaceDRO channelInterfaceDRO = new ChannelInterfaceDRO();
//        BeanCopyUtils.copyProperties(channelInterface, channelInterfaceDRO);
//
//        return ResponseDTO.success(channelInterfaceDRO, "OK");
//    }
//
//}
